import request from './request.js'

export function getAllBookType(parms) {
  return request({
    url: `/dicManager/getAllBookType`,
    method: 'POST',
    data:parms
  })
}
export function getBookList(parms) {
  return request({
    url: `/Book/getBookList`,
    method: 'POST',
    data:parms
  })
}
export function clientLogin(parms) {
  return request({
    url: `/User/clientLogin`,
    method: 'POST',
    data:parms
  })
}
export function borrowBookQrcode(parms) {
  return request({
    url: `/Borrow/borrowBookQrcode/${parms.id}`,
    method: 'GET',
    data:{}
  })
}
export function wxLogin(parms) {
  return request({
    url: `/User/wxLogin/${parms.code}`,
    method: 'GET',
    data:{}
  })
}
export function getBookDetails(parms) {
  return request({
    url: `/Book/getBookDetails/${parms.id}`,
    method: 'GET',
    data:{}
  })
}
export function myBorrowHistory(parms) {
  return request({
    url: `/Borrow/myBorrowHistory`,
    method: 'POST',
    data:parms
  })
}
export function getBorrowCount(parms) {
  return request({
    url: `/Borrow/getBorrowCount`,
    method: 'GET',
    data:parms
  })
}
